<template>
<div>
  <input v-model="x">+
  <input v-model="y">
  <button @click="add()">求和</button>
  {{x}}+{{y}}={{recult}}
</div>
</template>

<script>
import Util from "@/common/Util";
export default {
  name: "IndexView",
  data(){
    return{
      x:'',
      y:'',
      recult:''
    }


  },methods(){
    add:{
     this.recult= Util.add(this.x*1,this.y*1)
    }
  },
}
</script>

<style scoped>

</style>